package com.martini.satoken01.config;

import com.martini.satoken01.service.SaTokenUserAuthServiceImpl;
import com.martini.satoken01.service.UserAuthService;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

/**
 * @author martini at 2021/12/17 23:48
 */
@SpringBootConfiguration
public class UserAuthConfiguration {
    @Bean
    @ConditionalOnMissingBean
    public UserAuthService userAuthService() {
        return new SaTokenUserAuthServiceImpl();
    }
}
